package io.zhengsh.order.feign;

import io.zhengsh.order.dto.PaymentDto;
import io.zhengsh.order.dto.RefundPaymentDto;
import io.zhengsh.order.exception.ServiceException;
import io.zhengsh.order.vo.PaymentVo;
import io.zhengsh.order.vo.RefundPaymentVo;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallback implements PaymentFeign {

    @Override
    public PaymentVo create(PaymentDto paymentDto) {
        throw new ServiceException("哥们，系统走丢了！");
    }

    @Override
    public RefundPaymentVo refund(RefundPaymentDto refundPaymentDto) {
        throw new ServiceException("哥们，系统走丢了！");
    }
}
